From 0a046a54f53697095461c1991df00613bbd062e4 Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Tue, 14 Jul 2026 11:40:34 +0200 Subject: [PATCH] matplotlib_nullptr_s390x =================================================================== Gbp-Pq: Name matplotlib_nullptr_s390x.patch --- Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx index 3e6b219f0..714723e5d 100644 --- a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx +++ b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx @@ -1023,6 +1023,12 @@ bool vtkMatplotlibMathTextUtilities::RenderOneCell(vtkImageData* image, int bbox return false; } + if (ptr == nullptr) + { + vtkErrorMacro("image returned null ScalarPointer."); + return false; + } + // Background, do not load python data if (row > pythonRowStart || col < pythonColStart || row <= pythonRowEnd || col >= pythonColEnd) -- 2.30.2